#include <stdio.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <map>
#include <malloc.h>
#include <unistd.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <getopt.h>
#include <fcntl.h>
#include <ctype.h>
#include <errno.h>
#include <limits.h>
#include <time.h>
#include <locale.h>
#include <assert.h>
#include <termios.h>
#include <signal.h>
#include <sys/poll.h>
#include <sys/uio.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <endian.h>

#include "CommonUtil.h"
#include "UIOSAL.h"
#include "UIConfigResourceManager.h"
#include "UILogger.h"
//#include "UISpeechEvent.h"
//#include "HybridSpeechRecognizer.h"
//#include "AudioLogger.h"
#include "UIClientManager.h"


UIClientManager::UIClientManager(void)
  : UIModule(MODULE_ClientManager)
{

}

UIClientManager::~UIClientManager(void)
{
}

// virtual
bool UIClientManager::processSyncEvent(UIEvent* event)
{
	std::cout<< "ClientManager: process sync event" << std::endl << event->serializeJson() << std::endl;
	return true;
}

//virtual
bool UIClientManager::processAsyncEvent(UIEvent* event)
{
#ifdef _DEBUG
	std::cout << "ClientManager: process async event" << std::endl << event->serializeJson() << std::endl;
#endif
	return true;
}

bool UIClientManager::processData(UIEvent* event)
{
	return true;
}

//virtual
bool UIClientManager::cancel(void)
{
#ifdef _DEBUG
	std::cout << "ClientManager: cancel" << std::endl;
#endif
	return true;
}
